package com.lw.smartdevice.service;

import com.github.pagehelper.PageInfo;
import com.lw.smartdevice.pojo.SysCategory;

import java.util.List;

/**
 * @author Administrator
 * @version 1.0
 * @description:
 * @date 2022/3/20 19:20
 */
public interface SysCategoryService {
    void addSysCategory(SysCategory sysCategory);
    SysCategory findById(Long id);

    PageInfo<SysCategory> findAll(int pageNum,int pageSize,String categoryName);

    int updateCategory(SysCategory category);

    /**
     * 根据id删除数据
     * @param ids 要删除的主键，如果只删除一个就是集合中只有一条数据
     * @return
     */
    int deleteByIds(List<Long> ids);
}
